projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
655132b
)
cssgadget: fix fallback case
author
Cosimo Cecchi
<cosimoc@gnome.org>
Mon, 21 Dec 2015 02:23:46 +0000
(18:23 -0800)
committer
Cosimo Cecchi
<cosimoc@gnome.org>
Mon, 21 Dec 2015 17:22:16 +0000
(09:22 -0800)
We should be resetting the height here, not the width.
gtk/gtkcssgadget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcssgadget.c
b/gtk/gtkcssgadget.c
index 7f20f243abcb86abc94fcf61ac91b643a1c5a443..b56d023b7dae355ef18657e2366cf6b0f91b726d 100644
(file)
--- a/
gtk/gtkcssgadget.c
+++ b/
gtk/gtkcssgadget.c
@@
-563,7
+563,7
@@
gtk_css_gadget_allocate (GtkCssGadget *gadget,
g_warning ("Negative content height while allocating gadget (node %s, owner %s)\n",
gtk_css_node_get_name (gtk_css_gadget_get_node (gadget)),
G_OBJECT_TYPE_NAME (gtk_css_gadget_get_owner (gadget)));
- content_allocation.
width
= 0;
+ content_allocation.
height
= 0;
}
GTK_CSS_GADGET_GET_CLASS (gadget)->allocate (gadget, &content_allocation, baseline, &content_clip);